package com.dianping.cat.home.dependency.graph.entity;

import com.dianping.cat.home.dependency.graph.BaseEntity;
import com.dianping.cat.home.dependency.graph.IVisitor;








public class TopologyEdge
  extends BaseEntity<TopologyEdge>
{
  private String m_key;
  private String m_type;
  private String m_target;
  private boolean m_opposite;
  private int m_weight;
  private int m_status;
/*  22 */   private String m_des = "";

  private String m_link = "";


  private String m_self;


  private boolean m_dashed = false;



/*  34 */   public TopologyEdge(String key) { this.m_key = key; }




/*  39 */   public void accept(IVisitor visitor) { visitor.visitTopologyEdge(this); }



  public boolean equals(Object obj) {
/*  44 */     if (obj instanceof TopologyEdge) {
/*  45 */       TopologyEdge _o = (TopologyEdge)obj;

/*  47 */       if (!equals(getKey(), _o.getKey())) {
/*  48 */         return false;
      }

/*  51 */       return true;
    }

/*  54 */     return false;
  }


/*  58 */   public boolean getDashed() { return this.m_dashed; }



/*  62 */   public String getDes() { return this.m_des; }



/*  66 */   public String getKey() { return this.m_key; }



/*  70 */   public String getLink() { return this.m_link; }



/*  74 */   public boolean getOpposite() { return this.m_opposite; }



  public String getSelf() { return this.m_self; }



/*  82 */   public int getStatus() { return this.m_status; }



/*  86 */   public String getTarget() { return this.m_target; }



/*  90 */   public String getType() { return this.m_type; }



/*  94 */   public int getWeight() { return this.m_weight; }



  public int hashCode() {
/*  99 */     int hash = 0;

/* 101 */     return hash * 31 + ((this.m_key == null) ? 0 : this.m_key.hashCode());
  }




/* 107 */   public boolean isDashed() { return this.m_dashed; }



/* 111 */   public boolean isOpposite() { return this.m_opposite; }



  public void mergeAttributes(TopologyEdge other) {
/* 116 */     assertAttributeEquals(other, "topology-edge", "key", this.m_key, other.getKey());

/* 118 */     if (other.getType() != null) {
/* 119 */       this.m_type = other.getType();
    }

/* 122 */     if (other.getTarget() != null) {
/* 123 */       this.m_target = other.getTarget();
    }

/* 126 */     this.m_opposite = other.getOpposite();

/* 128 */     this.m_weight = other.getWeight();

/* 130 */     this.m_status = other.getStatus();

/* 132 */     if (other.getDes() != null) {
/* 133 */       this.m_des = other.getDes();
    }

/* 136 */     if (other.getLink() != null) {
/* 137 */       this.m_link = other.getLink();
    }

/* 140 */     if (other.getSelf() != null) {
/* 141 */       this.m_self = other.getSelf();
    }

/* 144 */     this.m_dashed = other.getDashed();
  }

  public TopologyEdge setDashed(boolean dashed) {
/* 148 */     this.m_dashed = dashed;
/* 149 */     return this;
  }

  public TopologyEdge setDes(String des) {
/* 153 */     this.m_des = des;
/* 154 */     return this;
  }

  public TopologyEdge setKey(String key) {
/* 158 */     this.m_key = key;
/* 159 */     return this;
  }

  public TopologyEdge setLink(String link) {
/* 163 */     this.m_link = link;
/* 164 */     return this;
  }

  public TopologyEdge setOpposite(boolean opposite) {
/* 168 */     this.m_opposite = opposite;
/* 169 */     return this;
  }

  public TopologyEdge setSelf(String self) {
/* 173 */     this.m_self = self;
/* 174 */     return this;
  }

  public TopologyEdge setStatus(int status) {
/* 178 */     this.m_status = status;
/* 179 */     return this;
  }

  public TopologyEdge setTarget(String target) {
/* 183 */     this.m_target = target;
/* 184 */     return this;
  }

  public TopologyEdge setType(String type) {
/* 188 */     this.m_type = type;
/* 189 */     return this;
  }

  public TopologyEdge setWeight(int weight) {
/* 193 */     this.m_weight = weight;
/* 194 */     return this;
  }

  public TopologyEdge() {}
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/classes/!/com/dianping/cat/home/dependency/graph/entity/TopologyEdge.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */